import base from '/@/api/base';
import Axios from '/@/utils/Axios';

export function getedithome(): Promise<any> {
    return Axios.get(base.getedithome);
}

export function updateHomeInfo(data: any): Promise<any> {
    return Axios.post(base.updateHomeInfo, data);
}

export function uploadHomeInfo(data: any): Promise<any> {
    return Axios.post("backapi/uploadHomeInfo", data);
}

export function deleHomeInfo(id: any): Promise<any> {
    return Axios.post(`backapi/delHomeInfo`, {id});
}
